<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Explore Trusted Information & Timely Updates at InfotoPlaza</title>
    <meta name="keywords" content="Health, Auto, Lifestyle, Travel, Fashion, Auto, InfotoPlaza">
    <meta name="description"
        content="Get expert information on health, technology, business, and more at InfotoPlaza. Stay informed with reliable updates on what matters most.">
    <link href="./css/layui.min.css" rel="stylesheet">
    <link rel="shortcut icon" href="https://infotoplaza.com/information/assets/favicon.ico">
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/public.css">
    <link rel="stylesheet" href="./css/home.css">
</head>

<body>
    <header class="header">
        <div class="wrap">
            <div class="main-header">
                <div class="menuBtn">
                    <img src="https://infotoplaza.com/information/assets/menu.png" alt>
                </div>
                <nav class="nav" aria-label="Site Menu">
                    <h2>
                        <a class="logo-is-image logo-link" href="https://infotoplaza.com/information/" rel="home"
                            title="Infotoplaza">
                            
                                <img alt="Infotoplaza" class="logo-image"
                                    src="https://infotoplaza.com/information/assets/logo.jpg"
                                    srcset="https://infotoplaza.com/information/assets/logo.jpg ../assets/logo.jpg 2x">
                            
                        </a>
                    </h2>
                    <ul id="menu-primary-menu-english" class="nav__list">
                        <li id="menu-item-125" class="menu-item">
                            <a class="nav__link" target="_parent"
                                href="https://infotoplaza.com/information/category/travel/">Travel</a>
                        </li>
                        <li id="menu-item-125" class="menu-item">
                            <a class="nav__link" target="_parent"
                                href="https://infotoplaza.com/information/category/health/">Health</a>
                        </li>
                        <li id="menu-item-125" class="menu-item">
                            <a class="nav__link" target="_parent"
                                href="https://infotoplaza.com/information/category/lifeStyle/">Lifestyle</a>
                        </li>
                        <li id="menu-item-125" class="menu-item">
                            <a class="nav__link" target="_parent"
                                href="https://infotoplaza.com/information/category/finance/">Finance</a>
                        </li>
                        <li id="menu-item-125" class="menu-item">
                            <a class="nav__link" target="_parent"
                                href="https://infotoplaza.com/information/category/auto/">Auto</a>
                        </li>
                        <li id="menu-item-125" class="menu-item">
                            <a class="nav__link" target="_parent"
                                href="https://infotoplaza.com/information/category/fashion/">Fashion</a>
                        </li>
                    </ul>
                </nav>
                <nav class="mobileNav">
                    <div class="navContent">
                        <img src="https://infotoplaza.com/information/assets/close.png" alt class="closeBtn">
                        <a class="logo-is-image logo-link" href="https://infotoplaza.com/information/" rel="home"
                            title="Infotoplaza">
                            <h1>
                                <img alt="Infotoplaza" class="logo-image"
                                    src="https://infotoplaza.com/information/assets/logo.jpg"
                                    srcset="https://infotoplaza.com/information/assets/logo.jpg ../assets/logo.jpg 2x">
                            </h1>
                        </a>
                        <ul id="menu-primary-menu-english" class="nav__list">
                            <li id="menu-item-125" class="menu-item">
                                <a class="nav__link" target="_parent"
                                    href="https://infotoplaza.com/information/category/travel/">Travel</a>
                            </li>
                            <li id="menu-item-125" class="menu-item">
                                <a class="nav__link" target="_parent"
                                    href="https://infotoplaza.com/information/category/health/">Health</a>
                            </li>
                            <li id="menu-item-125" class="menu-item">
                                <a class="nav__link" target="_parent"
                                    href="https://infotoplaza.com/information/category/lifeStyle/">Lifestyle</a>
                            </li>
                            <li id="menu-item-125" class="menu-item">
                                <a class="nav__link" target="_parent"
                                    href="https://infotoplaza.com/information/category/finance/">Finance</a>
                            </li>
                            <li id="menu-item-125" class="menu-item">
                                <a class="nav__link" target="_parent"
                                    href="https://infotoplaza.com/information/category/auto/">Auto</a>
                            </li>
                            <li id="menu-item-125" class="menu-item">
                                <a class="nav__link" target="_parent"
                                    href="https://infotoplaza.com/information/category/fashion/">Fashion</a>
                            </li>
                        </ul>
                    </div>
                </nav>
                <div class="navMask"></div>

                <div class="searchBox">
                    <input type="text" placeholder="Search..." class="layui-input">
                    <img src="https://infotoplaza.com/information/assets/Search.png" alt="" class="searchIcon">
                    
                </div>
            </div>

        </div>

    </header>

    <main class="wrap">
        <section class="main">
            <div class="content-main">
                <div class="contentBox bannerBox mainArticle">

                </div>
                <section class="contentBox swiperArticle">
                  
                </section>

                <section class="contentBox category_travel">
                    <div class="categoryTitle">
                        <h2 class="heading">
                            <a href="https://infotoplaza.com/information/category/travel/">
                                Travel
                            </a>
                        </h2>
                        <a class="view-more" href="https://infotoplaza.com/information/category/travel/">
                            more related Travel
                        </a>
                    </div>
                    <div class="category_content">
                     
                    </div>
                    <div class="category_subContent">
                       
                    </div>
                </section>

                <section class="contentBox category_health">
                    <div class="categoryTitle">
                        <h2 class="heading">
                            <a href="https://infotoplaza.com/information/category/health/">
                                Health
                            </a>
                        </h2>
                        <a class="view-more" href="https://infotoplaza.com/information/category/health/">
                            more related Health
                        </a>
                    </div>
                    <div class="category_content">
                     
                    </div>
                </section>

                <section class="contentBox category_Trending">
                    <h4 class="trending_Title AFC1">
                        <!-- Trending Recipes -->
                         AD
                    </h4>
                    <div class="category_subContent">
                       
                    </div>
                </section>

                <section class="contentBox category_LifeStyle">
                    <div class="categoryTitle">
                        <h2 class="heading">
                            <a href="https://infotoplaza.com/information/category/lifeStyle/">
                                LifeStyle
                            </a>
                        </h2>
                        <a class="view-more" href="https://infotoplaza.com/information/category/lifeStyle/">
                            more related LifeStyle
                        </a>
                    </div>
                    <div class="category_content">
                       <div class="mainRecommnd"></div>
                        <div class="life_right">
                            
                        </div>

                    </div>
                </section>
            </div>
            <div class="aside">
                <section class="relatedPosts">
                
                </section>
                <div class="AFC2">
                    AD
                    <!-- AFC -->
                </div>
            </div>
        </section>
        <section class="main_bottom">
            <div class="contentBox bannerBox">
                <section class="articleBox">
                  
                </section>
            </div>
            <aside class="asidePosts">
                
            </aside>
        </section>
        <section class="main_footer">
            <div class="leftBox">
                <section class="contentBox category_Finance">
                    <div class="categoryTitle">
                        <h2 class="heading">
                            <a href="./category/index.html">
                                Finance
                            </a>
                        </h2>
                        <a class="view-more" href="./category/index.html">
                            more related Finance
                        </a>
                    </div>
                    <div class="category_content">
                      
                    </div>
                </section>
            </div>
            <aside class="auto">
                <section class="contentBox category_auto">
                    <div class="categoryTitle">
                        <h2 class="heading">
                            <a href="https://infotoplaza.com/information/category/auto/">
                                AUTO
                            </a>
                        </h2>
                    </div>
                   
                </section>
            </aside>
        </section>
    </main>

    <footer class="copyRight">
        <div class="wrap">
            <ul class="links">
                <li><a href="https://infotoplaza.com/information/">Home</a></li>
                <li><a href="https://infotoplaza.com/information/copyRight/aboutUs/">ABOUT US</a></li>
                <li><a href="https://infotoplaza.com/information/copyRight/term_of_us/">TERMS OF USE</a></li>
                <li><a href="https://infotoplaza.com/information/copyRight/privacy_policy/">PRIVACY POLICY</a></li>
                <li><a href="https://infotoplaza.com/information/copyRight/contactUs/">CONTACT US</a></li>
            </ul>
            <br>
            <br>
            <p>
                © 2024  InfotoPlaza.com
            </p>
            <br>
            <strong>Disclaimer</strong>
            <br>
            <div class="descption">
                The content available on this website, including text, graphics, images, and information, is provided
                only for general informational purposes. The materials and details on these pages, along with any terms,
                conditions, or descriptions, are subject to change without prior notice.
            </div>
        </div>
    </footer>

  
</body>

<script src="./utils/jquery.js"></script>

<script type="module">
    import {articleData} from './utils/common.js'
    // 大图
    let otherArr = []
    let todaysArr = []
    for(let i in articleData){
        for(let j in articleData[i]){
            if(articleData[i][j].isSwiper){
                otherArr.push(articleData[i][j])
            }
            if(articleData[i][j].isTodays){
                todaysArr.push(articleData[i][j])
            }
        }
    }
   
    const mainArticle = otherArr[1]
    $('.mainArticle').html(` <section class="articleBox">
                    <a class="imgBox bgBox1" href="https://infotoplaza.com/information/detail/${mainArticle.classfy}/${mainArticle.articleName}" class="imgBox" title="${mainArticle.newsTitle}">
                        <div class="bgImg bgBox1 transformImg"
                            style="background-image: url(${mainArticle.imgUrl})"
                            alt="${mainArticle.newsTitle}"></div>
                    </a>
                    <div class="mask">
                        <div class="contentText">
                            <div class="typeBtn">
                                <a href="https://infotoplaza.com/information/category/${mainArticle.classfy == 'other' ? mainArticle.realClassfy : mainArticle.classfy}/index.html">
                                    ${mainArticle.classfy == 'other' ? mainArticle.realClassfy.toUpperCase() : mainArticle.classfy.toUpperCase()}
                                </a>
                            </div>
                            <h2 class="titleText">
                                <a href="https://infotoplaza.com/information/detail/${mainArticle.classfy}/${mainArticle.articleName}">
                                ${mainArticle.newsTitle}</a>
                            </h2>
                            <div class="publicTime">
                                <a href="https://infotoplaza.com/information/detail/${mainArticle.classfy}/${mainArticle.articleName}">
                                    ${mainArticle.author} -
                                </a>
                                <time datetime="${mainArticle.publicTime}">${mainArticle.publicTime}</time>
                            </div>
                        </div>

                    </div>
                </section>`)
    // 大图下方
    let swiperArticleList = otherArr.filter((item, index) => {
        return index !== 1
    })
    let swiperStr = ''
    swiperArticleList.map(item =>{
        swiperStr += `  <article class="posts">
                    <div class="media">
                        <a  href="https://infotoplaza.com/information/detail/${item.classfy}/${item.articleName}" class="imgBox" title="${item.newsTitle}">
                            <div class="bgImg bgBox2 lazyloaded"
                                data-bgset="${item.imgUrl} 350w, ${item.imgUrl}  750w"
                                data-bgsrc="${item.imgUrl} "
                                data-sizes="(max-width: 361px) 100vw, 361px"
                                style="background-image: url(&quot;${item.imgUrl} &quot;);">
                            </div>
                        </a>
                    </div>
                    <div class="contentText">
                        <h2>
                            <a href="https://infotoplaza.com/information/detail/${item.classfy}/${item.articleName}">
                                ${item.newsTitle}
                            </a>
                        </h2>
                    </div>
                </article>`
    })
    $('.swiperArticle').html(swiperStr)

    // 各分类数据
    let travelArticleList = articleData['travel'].filter((item, index) => {
        return index < 5
    })
    $('.category_travel').html(`  
     <div class="categoryTitle">
                    <h2 class="heading">
                        <a href="https://infotoplaza.com/information/category/travel/">
                            Travel
                        </a>
                    </h2>
                    <a class="view-more" href="https://infotoplaza.com/information/category/travel/">
                        more related Travel
                    </a>
                </div>
                <div class="category_content">
                    <article class="posts mainRecommnd">
                        <div class="media">
                            <a  href="https://infotoplaza.com/information/detail/${travelArticleList[0].classfy}/${travelArticleList[0].articleName}" title="${travelArticleList[0].newsTitle}">
                                <div class="bgImg bgBox3 lazyloaded "
                                    data-bgset="${travelArticleList[0].imgUrl} 450w, ${travelArticleList[0].imgUrl} 768w,${travelArticleList[0].imgUrl} 1000w"
                                    data-bgsrc="{travelArticleList[0].imgUrl}"
                                    data-sizes="max-width: 361px) 100vw, 361px"
                                    style="background-image: url(&quot;${travelArticleList[0].imgUrl}&quot;);">
                                </div>
                            </a>
                            <div class="typeBtn">
                                <a href="https://infotoplaza.com/information/category/${travelArticleList[0].classfy}/">
                                    ${travelArticleList[0].classfy.toUpperCase()}
                                </a>
                            </div>
                        </div>
                        <div class="contentText">
                            <h2>
                                <a  href="https://infotoplaza.com/information/detail/${travelArticleList[0].classfy}/${travelArticleList[0].articleName}">
                                    ${travelArticleList[0].newsTitle}
                                </a>
                            </h2>
                            <p class="desc">
                                <a  href="https://infotoplaza.com/information/detail/${travelArticleList[0].classfy}/${travelArticleList[0].articleName}">
                                                                      ${travelArticleList[0].seoText}
                                </a>
                            </p>
                        </div>
                    </article>
                      <article class="posts mainRecommnd">
                        <div class="media">
                            <a  href="https://infotoplaza.com/information/detail/${travelArticleList[1].classfy}/${travelArticleList[1].articleName}" title="${travelArticleList[1].newsTitle}">
                                <div class="bgImg bgBox3 lazyloaded "
                                    data-bgset="${travelArticleList[1].imgUrl} 450w, ${travelArticleList[1].imgUrl} 768w,${travelArticleList[1].imgUrl} 1000w"
                                    data-bgsrc="${travelArticleList[1].imgUrl}"
                                    data-sizes="(max-width: 361px) 100vw, 361px"
                                    style="background-image: url(&quot;${travelArticleList[1].imgUrl}&quot;);">
                                </div>
                            </a>
                            <div class="typeBtn">
                                <a href="https://infotoplaza.com/information/category/${travelArticleList[1].classfy}/">
                                    ${travelArticleList[1].classfy.toUpperCase()}
                                </a>
                            </div>
                        </div>
                        <div class="contentText">
                            <h2>
                                <a  href="https://infotoplaza.com/information/detail/${travelArticleList[1].classfy}/${travelArticleList[1].articleName}">
                                    ${travelArticleList[1].newsTitle}
                                </a>
                            </h2>
                            <p class="desc">
                                <a  href="https://infotoplaza.com/information/detail/${travelArticleList[1].classfy}/${travelArticleList[1].articleName}">
                                                                        ${travelArticleList[1].seoText}
                                </a>
                            </p>
                        </div>
                    </article>
                </div>
                <div class="category_subContent">
                    <article class="post subPosts">
                        <div class="media">
                            <a  href="https://infotoplaza.com/information/detail/${travelArticleList[2].classfy}/${travelArticleList[2].articleName}" title="${travelArticleList[2].newsTitle}">
                                <div class="bgImg bgBox4 lazyloaded"
                                    data-bgset="${travelArticleList[2].imgUrl} 300w, ${travelArticleList[2].imgUrl} 707w, ${travelArticleList[2].imgUrl} 768w, ${travelArticleList[2].imgUrl} 450w, ${travelArticleList[2].imgUrl} 1000w"
                                    data-bgsrc="${travelArticleList[2].imgUrl}"
                                    data-sizes="(max-width: 135px) 100vw, 135px"
                                    style="background-image: url(&quot;${travelArticleList[2].imgUrl}&quot;);">
                                </div>
                            </a>
                        </div>
                        <div class="postsText">
                            <h4 class="postsTitle">
                                <a  href="https://infotoplaza.com/information/detail/${travelArticleList[2].classfy}/${travelArticleList[2].articleName}">
                                    ${travelArticleList[2].newsTitle}
                                </a>
                            </h4>
                            <time class="postsDate" datetime="${travelArticleList[2].publicTime}">${travelArticleList[2].publicTime}</time>
                        </div>
                    </article>
                        <article class="post subPosts">
                        <div class="media">
                            <a  href="https://infotoplaza.com/information/detail/${travelArticleList[3].classfy}/${travelArticleList[3].articleName}" title="${travelArticleList[3].newsTitle}">
                                <div class="bgImg bgBox4 lazyloaded"
                                    data-bgset="/${travelArticleList[3].imgUrl} 300w, ${travelArticleList[3].imgUrl} 707w, ${travelArticleList[3].imgUrl} 768w, ${travelArticleList[3].imgUrl} 450w, ${travelArticleList[3].imgUrl} 1000w"
                                    data-bgsrc="/${travelArticleList[3].imgUrl}"
                                    data-sizes="(max-width: 135px) 100vw, 135px"
                                    style="background-image: url(&quot;${travelArticleList[3].imgUrl}&quot;);">
                                </div>
                            </a>
                        </div>
                        <div class="postsText">
                            <h4 class="postsTitle">
                                <a  href="https://infotoplaza.com/information/detail/${travelArticleList[3].classfy}/${travelArticleList[3].articleName}">
                                    ${travelArticleList[3].newsTitle}
                                </a>
                            </h4>
                            <time class="postsDate" datetime="${travelArticleList[3].publicTime}">${travelArticleList[3].publicTime}</time>
                        </div>
                    </article>
                </div>`)
    const healthArticleList = articleData['health']

    $('.category_health .category_content').html(`
      <section class="articleBox">
                        <a class="imgBox" href="https://infotoplaza.com/information/detail/${healthArticleList[0].classfy}/${healthArticleList[0].articleName}" title="${healthArticleList[0].newsTitle}">
                            <div class="bgImg bgBox5 transformImg lazyloaded"
                                data-bgset="${healthArticleList[0].imgUrl} 450w, ${healthArticleList[0].imgUrl} 300w, ${healthArticleList[0].imgUrl} 750w, ${healthArticleList[0].imgUrl} 768w, ${healthArticleList[0].imgUrl} 150w, ${healthArticleList[0].imgUrl} 1000w"
                                data-bgsrc="${healthArticleList[0].imgUrl}"
                                data-sizes="(max-width: 361px) 100vw, 361px"
                                style="background-image: url(&quot;${healthArticleList[0].imgUrl}&quot;);">
                            </div>
                        </a>
                        <div class="mask">
                            <div class="contentText">
                                <div class="typeBtn">
                                    <a href="https://infotoplaza.com/information/category/${healthArticleList[0].classfy}/" >
                                        ${healthArticleList[0].classfy.toUpperCase()}
                                    </a>
                                </div>
                                <h2 class="titleText">
                                    <a href="https://infotoplaza.com/information/detail/${healthArticleList[0].classfy}/${healthArticleList[0].articleName}" >
                                    ${healthArticleList[0].newsTitle}</a>
                                </h2>
                                <div class="publicTime">
                                    <a href="https://infotoplaza.com/information/detail/${healthArticleList[0].classfy}/${healthArticleList[0].articleName}" >
                                        ${healthArticleList[0].author} -
                                    </a>
                                    <time datetime="${healthArticleList[0].publicTime}">${healthArticleList[0].publicTime}</time>
                                </div>
                            </div>

                        </div>
                    </section>

                   <section class="articleBox">
                        <a class="imgBox" href="https://infotoplaza.com/information/detail/${healthArticleList[1].classfy}/${healthArticleList[1].articleName}" title="${healthArticleList[1].newsTitle}">
                            <div class="bgImg bgBox5 transformImg lazyloaded"
                                data-bgset="${healthArticleList[1].imgUrl} 450w, ${healthArticleList[1].imgUrl} 300w, ${healthArticleList[1].imgUrl} 750w, ${healthArticleList[1].imgUrl} 768w, ${healthArticleList[1].imgUrl} 150w, ${healthArticleList[1].imgUrl} 1000w"
                                data-bgsrc="${healthArticleList[1].imgUrl}"
                                data-sizes="(max-width: 361px) 100vw, 361px"
                                style="background-image: url(&quot;${healthArticleList[1].imgUrl}&quot;);">
                            </div>
                        </a>
                        <div class="mask">
                            <div class="contentText">
                                <div class="typeBtn">
                                    <a href="https://infotoplaza.com/information/category/${healthArticleList[1].classfy}/" >
                                        ${healthArticleList[1].classfy.toUpperCase()}
                                    </a>
                                </div>
                                <h2 class="titleText">
                                    <a href="https://infotoplaza.com/information/detail/${healthArticleList[1].classfy}/${healthArticleList[1].articleName}" >
                                    ${healthArticleList[1].newsTitle}</a>
                                </h2>
                                <div class="publicTime">
                                    <a href="https://infotoplaza.com/information/detail/${healthArticleList[1].classfy}/${healthArticleList[1].articleName}" >
                                        ${healthArticleList[1].author} -
                                    </a>
                                    <time datetime="${healthArticleList[1].publicTime}">${healthArticleList[1].publicTime}</time>
                                </div>
                            </div>

                        </div>
                    </section>`)
    
    let trendingStr = ''
    for(let i = 2; i < 6; i++){
        trendingStr += ` <article class="post subPosts">
                        <div class="media">
                            <a href="https://infotoplaza.com/information/detail/${healthArticleList[i].classfy}/${healthArticleList[i].articleName}" title="${healthArticleList[i].newsTitle}">
                                <div class="bgImg bgBox4 lazyloaded"
                                    data-bgset="${healthArticleList[i].imgUrl} 300w, ${healthArticleList[i].imgUrl} 707w, ${healthArticleList[i].imgUrl} 768w,${healthArticleList[i].imgUrl} 150w, ${healthArticleList[i].imgUrl} 450w, ${healthArticleList[i].imgUrl} 1000w"
                                    data-bgsrc="${healthArticleList[i].imgUrl}"
                                    data-sizes="(max-width: 135px) 100vw, 135px"
                                    style="background-image: url(&quot;${healthArticleList[i].imgUrl}&quot;);">
                                </div>
                            </a>
                        </div>
                        <div class="postsText">
                            <h4 class="postsTitle">
                                <a href="https://infotoplaza.com/information/detail/${healthArticleList[i].classfy}/${healthArticleList[i].articleName}">
                                   ${healthArticleList[i].newsTitle}
                                </a>

                            </h4>
                            <time class="postsDate" datetime="${healthArticleList[i].publicTime}">${healthArticleList[i].publicTime}</time>
                        </div>
                    </article>`
    }
    $('.category_Trending .category_subContent').html(trendingStr)

    const lifeStyleArticleList = articleData['lifeStyle']
    let lifeStyleStr = ''

    $('.category_LifeStyle .category_content .mainRecommnd' ).html(`<div class="media">
                            <a href="https://infotoplaza.com/information/detail/${lifeStyleArticleList[0].classfy}/${lifeStyleArticleList[0].articleName}" title="${lifeStyleArticleList[0].newsTitle}">
                                <div class="bgImg bgBox3 lazyloaded "
                                    data-bgset="${lifeStyleArticleList[0].imgUrl} 450w, ${lifeStyleArticleList[0].imgUrl} 750w, ${lifeStyleArticleList[0].imgUrl} 768w, ${lifeStyleArticleList[0].imgUrl} 1000w"
                                    data-bgsrc="${lifeStyleArticleList[0].imgUrl}"
                                    data-sizes="(max-width: 361px) 100vw, 361px"
                                    style="background-image: url(&quot;${lifeStyleArticleList[0].imgUrl}&quot;);">
                                </div>
                            </a>
                                <div class="typeBtn">
                                <a href="https://infotoplaza.com/information/category/${lifeStyleArticleList[0].classfy}/">
                                    ${lifeStyleArticleList[0].classfy.toUpperCase()}
                                </a>
                            </div>
                        </div>
                        <div class="contentText">
                            <h2>
                                <a href="https://infotoplaza.com/information/detail/${lifeStyleArticleList[0].classfy}/${lifeStyleArticleList[0].articleName}">
                                   ${lifeStyleArticleList[0].newsTitle}
                                </a>
                            </h2>
                            <a class="author" href="https://infotoplaza.com/information/detail/${lifeStyleArticleList[0].classfy}/${lifeStyleArticleList[0].articleName}">
                                By ${lifeStyleArticleList[0].author} --
                            </a>
                            <time class="postsDate" datetime="${lifeStyleArticleList[0].publicTime}">${lifeStyleArticleList[0].publicTime}</time>
                            <p class="desc">
                               <a href="https://infotoplaza.com/information/detail/${lifeStyleArticleList[0].classfy}/${lifeStyleArticleList[0].articleName}">
                                   ${lifeStyleArticleList[0].seoText}
                                </a>
                            </p>
                        </div>`)

    for(let i = 1; i < 5; i++){
        lifeStyleStr += `<article class="post subPosts">
                            <div class="media">
                                <a href="https://infotoplaza.com/information/detail/${lifeStyleArticleList[i].classfy}/${lifeStyleArticleList[i].articleName}" title="${lifeStyleArticleList[i].newsTitle}">
                                    <div class="bgImg bgBox4 lazyloaded"
                                        data-bgset="${lifeStyleArticleList[i].imgUrl} 300w, ${lifeStyleArticleList[i].imgUrl} 707w, ${lifeStyleArticleList[i].imgUrl} 768w, ${lifeStyleArticleList[i].imgUrl} 150w, ${lifeStyleArticleList[i].imgUrl} 450w, ${lifeStyleArticleList[i].imgUrl} 1000w"
                                        data-bgsrc="${lifeStyleArticleList[i].imgUrl}"
                                        data-sizes="(max-width: 135px) 100vw, 135px"
                                        style="background-image: url(&quot;${lifeStyleArticleList[i].imgUrl}&quot;);">
                                    </div>
                                </a>
                            </div>
                            <div class="postsText">
                                <h4 class="postsTitle">
                                    <a href="https://infotoplaza.com/information/detail/${lifeStyleArticleList[i].classfy}/${lifeStyleArticleList[i].articleName}" >
                                        ${lifeStyleArticleList[i].newsTitle}
                                    </a>
                                </h4>

                                <time class="postsDate" datetime="${lifeStyleArticleList[i].publicTime}">${lifeStyleArticleList[i].publicTime}</time>
                            </div>
                        </article>`
    }
    $('.category_LifeStyle .category_content .life_right' ).html(lifeStyleStr)

    // fashion
    const fashionArticleList = articleData['fashion']
    $('.main_bottom .articleBox').html(`  <a href="https://infotoplaza.com/information/detail/${fashionArticleList[0].classfy}/${fashionArticleList[0].articleName}" title="${fashionArticleList[0].newsTitle}">
                    <div class="bgImg bgBox1"
                        style="background-image: url(${fashionArticleList[0].imgUrl});"
                        alt="${fashionArticleList[0].newsTitle}"></div>
                </a>
                <div class="mask">
                    <div class="contentText">
                        <div class="typeBtn">
                            <a href="https://infotoplaza.com/information/category/${fashionArticleList[0].classfy}/">
                                ${fashionArticleList[0].classfy.toUpperCase()}
                            </a>
                        </div>
                        <h2 class="titleText">
                            <a href="https://infotoplaza.com/information/detail/${fashionArticleList[0].classfy}/${fashionArticleList[0].articleName}">${fashionArticleList[0].newsTitle}</a>
                        </h2>
                        <div class="publicTime">
                            <a href="https://infotoplaza.com/information/detail/${fashionArticleList[0].classfy}/${fashionArticleList[0].articleName}">
                                ${fashionArticleList[0].author} - <time datetime="${fashionArticleList[0].publicTime}">${fashionArticleList[0].publicTime}</time>
                            </a>

                        </div>
                    </div>

                </div>`)
    let fashionStr = ''
    for(let i = 1; i < 6; i++){
        fashionStr += ` 
        <article class="post subPosts">
                <div class="media">
                    <a href="https://infotoplaza.com/information/detail/${fashionArticleList[i].classfy}/${fashionArticleList[i].articleName}" title="${fashionArticleList[i].newsTitle}">
                    <div class="bgImg bgBox4"
                        style="background-image: url(${fashionArticleList[i].imgUrl});"
                        alt="${fashionArticleList[i].newsTitle}"></div>
                </a>
                </div>
                <div class="postsText">
                    <h4 class="postsTitle">
                        <a href="https://infotoplaza.com/information/detail/${fashionArticleList[i].classfy}/${fashionArticleList[i].articleName}">
                            ${fashionArticleList[i].newsTitle}
                        </a>
                    </h4>
                    <time class="postsDate" datetime="${fashionArticleList[i].publicTime}">
                         <a href="https://infotoplaza.com/information/detail/${fashionArticleList[i].classfy}/${fashionArticleList[i].articleName}">
                            ${fashionArticleList[i].publicTime}
                        </a>
                        </time>
                </div>
            </article>`
    }
    $('.main_bottom .asidePosts').html(fashionStr)

    let financeStr = ''
    let financeArticleList = articleData['finance']
    for(let i = 0; i < 6; i++){
        financeStr += ` <section class="articleBox">
                        <a class="imgBox"  href="https://infotoplaza.com/information/detail/${financeArticleList[i].classfy}/${financeArticleList[i].articleName}" title="${financeArticleList[i].newsTitle}">
                            <div class="bgImg bgBox6 lazyloaded"
                                data-bgset="${financeArticleList[i].imgUrl} 450w, ${financeArticleList[i].imgUrl} 300w, ${financeArticleList[i].imgUrl} 750w, ${financeArticleList[i].imgUrl} 150w, ${financeArticleList[i].imgUrl} 1000w"
                                data-bgsrc="${financeArticleList[i].imgUrl}"
                                data-sizes="(max-width: 361px) 100vw, 361px"
                                style="background-image: url(&quot;${financeArticleList[i].imgUrl}&quot;);">
                            </div>
                        </a>
                        <div class="mask">
                            <div class="contentText">
                                <div class="typeBtn">
                                    <a href="https://infotoplaza.com/information/category/${financeArticleList[i].classfy}/">
                                        ${financeArticleList[i].classfy.toUpperCase()}
                                    </a>
                                </div>
                                <h2 class="titleText">
                                    <a href="https://infotoplaza.com/information/detail/${financeArticleList[i].classfy}/${financeArticleList[i].articleName}">
                                        ${financeArticleList[i].newsTitle}
                                        </a>
                                </h2>
                            </div>

                        </div>
                    </section>`
    }
    $('.category_Finance .category_content').html(financeStr)

    const autoArticleList = articleData['auto']
    let autoStr = `<div class="categoryTitle">
                    <h2 class="heading">
                        <a href="https://infotoplaza.com/information/category/auto/">
                            AUTO
                        </a>
                    </h2>
                </div>
                <article class="posts mainRecommnd">
                  <div class="media">
                         <a href="https://infotoplaza.com/information/detail/${autoArticleList[0].classfy}/${autoArticleList[0].articleName}" title="${autoArticleList[0].newsTitle}">
                            <div class="bgImg bgBox3 lazyloaded "
                                data-bgset="${autoArticleList[0].imgUrl} 450w, ${autoArticleList[0].imgUrl} 750w, ${autoArticleList[0].imgUrl} 768w, ${autoArticleList[0].imgUrl} 1000w"
                                data-bgsrc="${autoArticleList[0].imgUrl}"
                                data-sizes="(max-width: 361px) 100vw, 361px"
                                style="background-image: url(&quot;${autoArticleList[0].imgUrl}&quot;);">
                            </div>
                        </a>
                        <div class="typeBtn">
                            <a href="https://infotoplaza.com/information/category/${autoArticleList[0].classfy}/">
                                    ${autoArticleList[0].classfy.toUpperCase()}
                            </a>
                        </div>
                    </div>
                    <div class="contentText">
                        <h2>
                            <a href="https://infotoplaza.com/information/detail/${autoArticleList[0].classfy}/${autoArticleList[0].articleName}">
                                ${autoArticleList[0].newsTitle}
                            </a>
                        </h2>
                    </div>
                </article>`
        for(let i = 1; i < 3; i++){
            autoStr += ` <article class="post subPosts">
                    <div class="postsText">
                        <h4 class="postsTitle">
                                <a href="https://infotoplaza.com/information/category/${autoArticleList[i].classfy}/">
                                    ${autoArticleList[i].newsTitle}
                                </a>
                        </h4>

                        <time class="postsDate" datetime=" ${autoArticleList[i].publicTime}"> ${autoArticleList[i].publicTime}</time>
                    </div>
                    <div class="media">
                        <a href="https://infotoplaza.com/information/category/${autoArticleList[i].classfy}/" title="${autoArticleList[i].newsTitle}">
                            <div class="bgImg bgBox4 lazyloaded"
                                data-bgset=" ${autoArticleList[i].imgUrl} 300w,  ${autoArticleList[i].imgUrl}707w,  ${autoArticleList[i].imgUrl} 768w,  ${autoArticleList[i].imgUrl} 150w,  ${autoArticleList[i].imgUrl} 450w,  ${autoArticleList[i].imgUrl} 1000w"
                                data-bgsrc=" ${autoArticleList[i].imgUrl}"
                                data-sizes="(max-width: 135px) 100vw, 135px"
                                style="background-image: url(&quot; ${autoArticleList[i].imgUrl}&quot;);">
                            </div>
                        </a>
                    </div>
                </article>`
        }
    $('.category_auto').html(autoStr)


   // 今日推荐
   let todaysList = todaysArr
    let relatedStr = `<div>
                <h1 class="relatedHeading">
                     Today's Trending Articles 
                </h1>
            </div>`
    todaysList.map(item => {
        relatedStr += `  <article class="post subPosts">
                
                <div class="postsText">
                    <h4 class="postsTitle">
                            <a href="https://infotoplaza.com/information/detail/${item.classfy}/${item.articleName}">
                               ${item.newsTitle}
                            </a>
                    </h4>
                      <time datetime="${item.publicTime}">${item.publicTime}</time>
                </div>
                <div class="media">
                    <a href="https://infotoplaza.com/information/detail/${item.classfy}/${item.articleName}" title="${item.newsTitle}">
                        <div class="bgImg bgBox4 lazyloaded"
                            data-bgset="${item.imgUrl} 300w, ${item.imgUrl} 707w, ${item.imgUrl} 768w, ${item.imgUrl} 150w, ${item.imgUrl} 450w, ${item.imgUrl} 1000w"
                            data-bgsrc="${item.imgUrl}"
                            data-sizes="(max-width: 135px) 100vw, 135px"
                            style="background-image: url(&quot;${item.imgUrl}&quot;);">
                        </div>
                    </a>
                </div>
            </article>`
    })

    $('.relatedPosts').html(relatedStr)
                    
    let befortop = 0;
    //监听滚动条事件
    function callBack() {
        let aftertop = document.documentElement ? document.documentElement.scrollTop : document.body.scrollTop;//兼容
        if (aftertop - befortop > 0) {
            document.querySelector('.header').style.marginTop = '-60px'
            console.log('向下');
        } else {
            if (aftertop >= 50) {
                document.querySelector('.header').style.marginTop = '-3px'
            }
            console.log('向上');
        }
        befortop = aftertop;
    }

    let timeout = null,
        startTime = Date.parse(new Date); // 开始时间
    window.addEventListener('scroll', function () {
        if (timeout !== null) clearTimeout(timeout);
        let curTime = Date.parse(new Date); // 当前时间
        if (curTime - startTime >= 1000) { // 时间差>=1秒直接执行
            callBack();
            startTime = curTime;
        } else { // 否则延时执行，像滚动了一下，差值<1秒的那种也要执行
            timeout = setTimeout(callBack(), 300);
        }
    });

    // 搜索
    const input = document.querySelector('.layui-input')
    input.onkeyup = function (event) {
    let e = event || window.event;
    if (e && e.keyCode == 13) { //回车键的键值为13
        location.href = `https://infotoplaza.com/information/search/?key=` + input.value
    }
    }




    function bodyScroll(event) {
        event.preventDefault();
    }

    function scrControl(t) {
        if (t == 0) { //禁止滚动
            document.body.addEventListener('touchmove', bodyScroll, {passive: false});
        } else if (t == 1) { //开启滚动
            document.body.removeEventListener('touchmove', bodyScroll, {passive: false});
        }
    }

    $('.menuBtn').on('click', function () {
        $('.mobileNav').css('transform', 'translateX(0)');
        $('.navMask').css('opacity', '1');
        $('.navMask').css('z-index', '1');
        $('.navMask').css('display', 'block');

        scrControl(0)
    })
    $('.closeBtn').on('click', function () {
        $('.mobileNav').css('transform', 'translateX(-100%)');
        $('.navMask').css('opacity', '0');
        $('.navMask').css('z-index', '-1');
        $('.navMask').css('display', 'none');
        scrControl(1)

    })




</script>
</html>